package Server;

import javafx.application.Application;
import javafx.event.EventHandler;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
import javafx.stage.WindowEvent;

public class ServerApplication extends Application {




	@Override
	public void start(Stage adminStage) throws Exception {
		Parent rootAdmin;
		rootAdmin = FXMLLoader.load(getClass().getResource("admin.fxml"));
		adminStage.setTitle("Server");
		adminStage.setScene(new Scene(rootAdmin, 600, 400));
		adminStage.show();

		adminStage.setOnHidden(new EventHandler<WindowEvent>() {
			
			@Override
			public void handle(WindowEvent arg0) {
				System.exit(0);
			}
		});

	}

	public static void main(String[] args) {
		Application.launch(args);
	}
}
